const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electronAPI', {
  getPlatform: () => ipcRenderer.invoke('get-platform'),
  openDialog: (options) => ipcRenderer.invoke('open-dialog', options),
  showNotification: (title, body) =>
    ipcRenderer.send('show-notification', title, body)
});
